package com.ym521.test

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.ym521.activitystack.YmActivityStack

class MainActivity2 : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main2)
        val view = findViewById<View>(R.id.tvRestart)
        view.setOnClickListener {
              YmActivityStack.restartApp(this)
        }
    }
}